﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClassEntities;
using System.Collections;

namespace Facade
{
    public class SuperFacade : MarshalByRefObject
    {
        protected DAOs.StudentDAO dao;
        public SuperFacade()
        {
            this.dao = new DAOs.StudentDAO();
        }
        public int Ping() { return 1; }
        /// <summmary>
        /// Facade for tblSinhvien
        /// </summary>
        public tblSinhVien getSingletblSinhvien(int stt) { return dao.getSingletblSinhVien(stt); }
        public tblSinhVien SinhVienLogin(Hashtable hash) { return dao.SinhVienLogin(hash); }
        /// <summmary>
        /// Facade for Truong
        /// </summary>
        public tblTruongHoc gettblTruongHoc(Hashtable hash) { return dao.gettblTruongHoc(hash); }
        /// <summmary>
        /// Facade for tblMonHoc
        /// </summary>
        public tblMonHoc[] gettblMonHoc(Hashtable hash) { return dao.gettblMonHoc(hash).ToArray(); }
        /// <summmary>
        /// Facade for tblToChucThi
        /// </summary>
        public tblToChucThi[] gettblToChucThi(Hashtable hash) { return dao.gettblToChucThi(hash).ToArray(); }
        /// <summmary>
        /// Facade for tblKyThi
        /// </summary>
        public tblKyThi[] gettblKyThi(Hashtable hash) { return dao.gettblKyThi(hash).ToArray(); }
        /// <summmary>
        /// Facade for tblLopHoc
        /// </summary>
        public tblLopHoc[] gettblLopHoc(Hashtable hash) { return dao.gettblLopHoc(hash).ToArray(); }
        /// <summmary>
        /// Facade for tblDangKyLop
        /// </summary>
        public tblDangKyLop[] gettblDangKyLop(Hashtable hash) { return dao.gettblDangKyLop(hash).ToArray(); }
        /// <summmary>
        /// Facade for tblDeThi
        /// </summary>
        public tblDeThi[] gettblDeThi(Hashtable hash) { return dao.gettblDeThi(hash).ToArray(); }
        /// <summmary>
        /// Facade for tblKetQuaThi
        /// </summary>
        public tblKetQuaThi[] gettblKetQuaThi(int id) { return dao.gettblKetQuaThi(id).ToArray(); }
        /// <summary>
        /// Facade for CauhoiThi
        /// </summary>
        public tblCauHoiThi[] gettblCauHoi(string tochucthiid, int idSinhvien) { return dao.gettblCauHoi(tochucthiid, idSinhvien).ToArray(); }
        /// <summary>
        /// Facade for tblBaiThi
        /// </summary>
        public tblBaiThi[] gettblBaiThi(string ketquathiid) { return dao.gettblBaiThi(ketquathiid).ToArray(); }
        /// <summmary>
        /// Facade for Lay list mon thi trong ngay
        /// </summary>
        public tblToChucThi[] getMonThi(int idSV) { return dao.getMonThi(idSV).ToArray(); }
    }
}
